import request from '@/utils/request'

//获取某书籍下所有评论
export function commentList(bookId){
    return request ({
        method: 'get',
        url: '/comment/getCommentList/'+bookId
    })
}
//发表评论
export function pushComment(bookId , content) {
    return request({
        method: 'post',
        url: '/comment/pushComment?bookId='+bookId+'&content='+content
    })
}
export default  { 
    commentList,
    pushComment
 }